const express = require('express');
const mobile = express.Router();
const User = require('../model/user')
//当前会议
mobile.post('/update', (req, res) => {
  User.updateOne({ phone: req.body.currentMobile }, { phone: req.body.newMobile }).then(result => {
    if (result) {
      res.send({
        code: 200, data: result
      })
    } else {
      res.send({
        code: 401
      })
    }
  });
})
module.exports = mobile;